package com.sgchen.demo.service;


import com.sgchen.demo.entity.po.AccountPo;
import com.sgchen.demo.entity.po.ChildAccountPo;

import java.util.List;

public interface AccountService {

    /**
     * 添加单个账号
     *
     * @param accountPo
     */
    void addAccount(AccountPo accountPo);


    /**
     * 获取所有账号
     *
     * @return
     */
    List<AccountPo> queryAllWrapper();


    /**
     * 通过账户名修改密码
     *
     * @param account
     * @param password
     */
    void updatePasswordByAccount(String account, String password);

    void updateByIdWrapper(ChildAccountPo accountPo);

    List<AccountPo> getInfoByMapperParams(AccountPo accountPo);

    List<AccountPo> getInfoByWrapper(AccountPo accountPo);

    List<ChildAccountPo> listByMapperEntity(AccountPo accountPo);

    AccountPo infoByWrapperId(Integer id);

    void updateByIdUpdateWrapper(AccountPo accountPo);

    void updateUpdateWrapper(AccountPo accountPo);

}
